<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\api\model\UserWordModel;
class UserWord extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];

    /**
     * 我的存档列表
     *
     */
    public function index()
    {
        $limit = input('post.limit',10);

        $model  = new UserWordModel();

        $list = $model::where(['user_id'=>$this->auth->id])->paginate($limit);

        $this->success('请求成功',$list);

    }

}